package com.example.buildtable.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class ProductSubcategory {
    @TableId(type = IdType.AUTO)
    private Integer productSubcategoryId;
    private String productSubcategoryName;
    private Integer orderNum;
    @TableField(value="product_id",target = Product.class)
    private Integer productId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private Product product;
    private Integer productSubcategoryStatus;
}
